search entry: Add a style class
authorMatthias Clasen <mclasen@redhat.com>
Thu, 29 Oct 2015 03:58:39 +0000 (23:58 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 29 Oct 2015 03:58:39 +0000 (23:58 -0400)
There should be little need to have separate styling for search
entries, so a separate name would be a bit overkill.

gtk/gtksearchentry.c

index 03e7c560c8be4f77968f5bddbd69c3c4b8191bb5..ce38e34843da50c4781c01943f8ef5e16e29600c 100644 (file)
@@ -367,6 +367,8 @@ gtk_search_entry_init (GtkSearchEntry *entry)
   atk_obj = gtk_widget_get_accessible (GTK_WIDGET (entry));
   if (GTK_IS_ACCESSIBLE (atk_obj))
     atk_object_set_name (atk_obj, _("Search"));
+
+  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), "search");
 }
 
 /**